home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HamCall (October 1991)
/
HamCall (Whitehall Publishing)(1991).bin
/
bcast
/
fccrf
/
vector.asc
< prev
next >
Wrap
Text File
|
1990-10-14
|
3KB
|
86 lines
10 CLS
20 PRINT CHR$(23)
30 PRINT TAB(10)"DIRECTIONAL ARRAY"
40 PRINT TAB(10)"VECTOR ANALYSIS"
50 PRINT TAB(10)"BY MARK CHAMBERS"
60 PRINT TAB(10)"WJYO/ WORL RADIO"
65 '305/298-5510
70 FOR X=1 TO 1000:NEXT
80 '
90 PRINT"Directional Array Vector Analysis"
100 INPUT"Enter number of towers ";T
110 CLS
120 FOR X=1 TO T
130 '
140 PRINT"Enter tower # ";X;"Relative amplitude"
150 INPUT I(X)
160 PRINT"Enter tower tower #";X;"Phase reading"
170 INPUT P(X)
180 NEXT X
190 '
200 PRINT"Enteries are :"
210 FORM$= " ##.## +###.##"
220 PRINT TAB(10) " Amplitude Phase"
230 FOR X=1 TO T
240 PRINT"Tower #";X;":"; USINGFORM$;I(X), P(X)
250 NEXT X
260 PRINT"Are all entries correct (Y or N)?"
270 INPUT A$:A=ASC(A$)
280 IF A=89 OR A=121 THEN 310:' Y
290 IF A=78 OR A=110 THEN 110:' N
300 GOTO 270
310 INPUT"Which is your reference tower";REF
320 '
330 FOR X=1 TO T
340 '
350 PRINT"Enter the angle between the space reference axis and line from the space reference point (Tower #";REF;") to the tower #";X
360 INPUT PH2(X)
370 PRINT"Enter distance in degrees between tower #";X;" and tower #";REF
380 INPUT S(X)
390 NEXT X
400 INPUT"Enter the desired monitor point in degrees ";M
410 '
420 FOR X=1 TO T
430 A1(X)=PH2(X)-M:A(X)=COS(A1(X)*1.745329E-02)
440 B(X)=(S(X)*A(X))+P(X)
450 NEXT X
460 STYLE$="! ! ! ! ! !"
470 F1$="**###.## **+###.## **+###.##"
480 PRINT"Monitor Point Bearing: ";M;" Degrees"
490 PRINT TAB(12); USINGSTYLE$;"Ratio","Phase","Vector"
500 FOR X=1 TO T
510 PRINT"Tower #";X;":"; USINGF1$;I(X),P(X),FIX(B(X))
520 NEXT X
530 PRINT
540 PRINT"Do you wish to change Tower parameters, Monitor point,"
550 PRINT"Re-run entire program or End (T,M,R,E) "
560 INPUT A$:A=ASC(A$):IF A$="" THEN 560 ELSE 580
570 PRINT"Enter desired selection":FOR Q=1 TO 80:NEXT Q:PRINT" ";:FOR Q=1 TO 20:NEXT Q:GOTO 560
580 IF A=84 OR A=116 THEN 620:' T
590 IF A=77 OR A=109 THEN 400:' M
600 IF A=82 OR A=114 THEN 80:' R
610 IF A=69 OR A=101 THEN END:' E
620 PRINT"Which tower parameters do you want to change?"
630 X=0
640 PRINT"Enter (1) for tower #1, (2) for tower #2, (3) for tower #3 etc"
650 A$=STR$(X)
660 INPUT A$:A=ASC(A$):IF A$="" THEN 660
670 X=VAL(A$)
680 GOTO 690
690 PRINT"Do you want to change Amplitude or Phase of tower #";X;"(A or P)"
700 INPUT A$:A=ASC(A$):IF A$="" THEN 700
710 IF A=65 OR A=97 THEN 740:' A
720 IF A=80 OR A=112 THEN 770:'P
730 GOTO 700
740 PRINT"Enter new relative amplitude for tower #";X
750 INPUT I(X)
760 GOTO 410
770 PRINT"Enter new phase reading for tower #";X
780 INPUT P(X)
790 GOTO 410
800 END
900 ' T TOWERS IN ARRAY I AMPLITUDE OF TOWER
910 ' REF REFERENCE TOWER PH2 ANG SPACE REF AXIS LINE
920 ' S DISTANCE M MONITOR POINT
930 ' RADIO WORLD 11/1/86 PAGE 24